package com.panda.business.mapper;

import com.panda.business.domain.DepartmentInfo;
import com.panda.framework.domain.base.DBPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentMapper {
	
	List<DepartmentInfo> queryDepartmentInfo(@Param("page") DBPage page, @Param("name") String name, @Param("cid") Integer cid);

	Integer queryDepartmentInfoCount(@Param("page") DBPage page, @Param("name") String name, @Param("cid") Integer cid);

	List<DepartmentInfo> getAllDepartmentInfoByCid(@Param("cid") Integer cid);

	DepartmentInfo findDepartmentInfoByid(@Param("id") Integer id);
	  
	Integer insert(DepartmentInfo info);
	
	void update(DepartmentInfo info);
	
	void delete(DepartmentInfo info);
  
}
